﻿<!--
//*****************************************************************************
//
//  Silver Games - Checkers
//  Copyright © 2009 Randi Relander
//      <rjrelander@users.sourceforge.net>
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
//*****************************************************************************
-->

<UserControl x:Class="Checkers.Client.Board"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:c="clr-namespace:Checkers.Client">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="CheckersResources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <Canvas>

            <Canvas.RenderTransform>
                <TransformGroup>
                    <TranslateTransform X="-210" Y="-210" />
                    <RotateTransform Angle="45" />
                    <ScaleTransform ScaleY="0.5" />
                </TransformGroup>
            </Canvas.RenderTransform>

            <Rectangle Width="420" Height="420" Fill="Black" Canvas.Left="10" Canvas.Top="10" Opacity="0.5" />

            <Rectangle Width="420" Height="420" Fill="White" Canvas.Left="0" Canvas.Top="0" />

            <StackPanel x:Name="mStackPanel" Canvas.Left="10" Canvas.Top="10" />

        </Canvas>
        
        <Canvas x:Name="mCheckerCanvas">
            <StackPanel x:Name="mThinker" Canvas.Left="140" Canvas.Top="-170" Visibility="Collapsed">
                <c:ProgressSpinner/>
                <TextBlock Margin="0,4,0,0" Text="Thinking ..." Foreground="White" />
            </StackPanel>
        </Canvas>
        
    </Grid>
    
</UserControl>
